--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Node / ReticulumProjects / MeshChatX.git / files / meshchatx / src / frontend / js / reticulumDocsEntryUrl.js
Displaying Raw • Download
meshchatx/src/frontend/js/reticulumDocsEntryUrl.js c0b0ddffd735a0d007c1be9a5e8563ec42fdafc0 (c0b0ddff) Text, 1.43 KB
T8b949e/**
* Relative path under /reticulum-docs/ for the Interfaces manual section on
* bootstrap_only and related options (Common Interface Options).
*/
Tff7b72export Tff7b72const Te6edf3RETICULUM_MANUAL_INTERFACES_COMMON_OPTIONS_REL Tff7b72= Ta5d6ff"manual/interfaces.html#common-interface-options"Tb4b4b4;
T8b949e/** Interfaces manual overview (directory of interface types). */
Tff7b72export Tff7b72const Te6edf3RETICULUM_MANUAL_INTERFACES_OVERVIEW_REL Tff7b72= Ta5d6ff"manual/interfaces.html"Tb4b4b4;
T8b949e/**
* Locales that ship a localized root index (index_<locale>.html) in the
* Reticulum website bundle. The Sphinx manual itself is English-only under
* manual/; other locales use these pages like the public site.
*/
Tff7b72const Te6edf3BUNDLED_RETICULUM_SITE_INDEX_LOCALES Tff7b72= Tff7b72new Tffa657SetTb4b4b4(Tb4b4b4[Ta5d6ff"de"Tb4b4b4, Ta5d6ff"es"Tb4b4b4, Ta5d6ff"jp"Tb4b4b4, Ta5d6ff"nl"Tb4b4b4, Ta5d6ff"pl"Tb4b4b4, Ta5d6ff"pt-br"Tb4b4b4, Ta5d6ff"tr"Tb4b4b4, Ta5d6ff"uk"Tb4b4b4, Ta5d6ff"zh-cn"Tb4b4b4]Tb4b4b4)Tb4b4b4;
T8b949e/**
* @param {string | undefined} locale
* @returns {string} path relative to /reticulum-docs/ (no leading slash)
*/
Tff7b72export Tff7b72function Te6edf3bundledReticulumDocsEntryPathTb4b4b4(Te6edf3localeTb4b4b4) Tb4b4b4{
Tff7b72const Te6edf3lang Tff7b72= Tb4b4b4(Te6edf3locale Tff7b72|| Ta5d6ff"en"Tb4b4b4)Tb4b4b4.Te6edf3toLowerCaseTb4b4b4(Tb4b4b4)Tb4b4b4;
Tff7b72if Tb4b4b4(Te6edf3lang Tff7b72=== Ta5d6ff"en"Tb4b4b4) Tb4b4b4{
Tff7b72return Ta5d6ff"manual/index.html"Tb4b4b4;
Tb4b4b4}
Tff7b72if Tb4b4b4(Te6edf3BUNDLED_RETICULUM_SITE_INDEX_LOCALESTb4b4b4.Te6edf3hasTb4b4b4(Te6edf3langTb4b4b4)Tb4b4b4) Tb4b4b4{
Tff7b72return Ta5d6ff`Ta5d6ffindex_Tffd700${Te6edf3langTffd700}Ta5d6ff.htmlTa5d6ff`Tb4b4b4;
Tb4b4b4}
Tff7b72return Ta5d6ff"manual/index.html"Tb4b4b4;
Tb4b4b4}
T8b949e/**
* @param {string | undefined} locale
* @returns {string} absolute app path for the default bundled Reticulum docs view
*/
Tff7b72export Tff7b72function Te6edf3bundledReticulumDocsUrlTb4b4b4(Te6edf3localeTb4b4b4) Tb4b4b4{
Tff7b72return Ta5d6ff`Ta5d6ff/reticulum-docs/Tffd700${Te6edf3bundledReticulumDocsEntryPathTb4b4b4(Te6edf3localeTb4b4b4)Tffd700}Ta5d6ff`Tb4b4b4;
Tb4b4b4}
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────